#include <iostream>
using namespace std;

void GetBoxSize(float& w, float& l, float& h);
float CalcBoxVol(float w, float l, float h);

int main() {
    float w, l, h;

    GetBoxSize(w, l, h);
    float vol = CalcBoxVol(w, l, h);

    cout << "正六面体的宽、长、高是 "
        << w << ", "
        << l << ", "
        << h << "\n";
    cout << "正六面体的体积是 " << vol << "\n";
}

void GetBoxSize(float& w, float& l, float& h) {
    cout << "请输入正六面体的宽、长、高: ";
    cin >> w >> l >> h;
}

float CalcBoxVol(float w, float l, float h) {
    return w * l * h;
}
